import { isNumber } from "./isNumber"
export const REG_EXP_CSS_LEN = /(px|em|rem|%|vw|vh|in|cm|mm|em|pt|pc)$/
export const isCssLength = (v: any): 'number or cssLength' | undefined => {
  if (isNumber(v) || v === 'auto' || isNumber(v.replace(REG_EXP_CSS_LEN, ''))) {
    return
  }
  return 'number or cssLength'
}